package com.example.chengche_lol.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.chengche_lol.R;
import com.example.chengche_lol.beans.CardBean;

import org.jetbrains.annotations.NotNull;

public class CardAdapter extends BaseQuickAdapter<CardBean, BaseViewHolder> {

    public CardAdapter() {
        super(R.layout.item_card);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, CardBean cardBean) {
        baseViewHolder.setImageResource(R.id.cd_icon,cardBean.getCd_icon());
        baseViewHolder.setImageResource(R.id.juese,cardBean.getCd_avatar());
        baseViewHolder.setText(R.id.game_name,cardBean.getGame_name());
        baseViewHolder.setText(R.id.totals,cardBean.getTotals());
        baseViewHolder.setText(R.id.wins,cardBean.getWins());
        baseViewHolder.setText(R.id.threekill,cardBean.getThreekill());
        baseViewHolder.setText(R.id.supre,cardBean.getSupre());
    }


}
